package models

type Help struct {
	HelpId, Rid, Uid, ChannelId, ChannelType int
	Title, Version, Download, Email, Detail string
	Point, Views, Close, Status int
	UpdateTime, CreateTime string
}

type HelpReturn struct {
	Title, CreateTime string
	HelpId int
}


func GetResourceHelp(Rid, ChannelId int) (helps []Help) {
	db.Where(Help{Rid:Rid, Status:1, ChannelId:ChannelId}).Limit(5).Find(&helps)
	return
}
